﻿using MKAdminCore.DTO.Web.Common;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace MKAdminCore.DTO.CusAttribute
{
    /// <summary>
    /// 属性验证抽象类
    /// </summary>
    public abstract class AbstractCusAttribute : Attribute
    {
        /// <summary>
        /// 验证失败信息
        /// </summary>
        public string ErrorMsg { get; set; }
        /// <summary>
        /// 验证方法
        /// </summary>
        /// <param name="oValue"></param>
        /// <returns></returns>
        public abstract HttpResponseResult Validate<T>(T dto, PropertyInfo prop);
    }
}
